from django.conf.urls.defaults import *
from movies.models import Movie, Plot

info_dict = {
    'queryset': Movie.objects.filter(active=True),
}

urlpatterns = patterns('',
	(r'^$', 'movies.views.index'),
	(r'^(?P<object_id>\d+)/$', 'django.views.generic.list_detail.object_detail', info_dict),
	(r'^runparser/$', 'movies.views.runparser'),
	(r'^movies/fetch_movie_info/(?P<id>\d+)/$', 'movies.views.fetch_movie_info'),
)
